
#include "utils.h"
#include <time.h>

#define NPYRAMID	4
#define NIMAGE		3

class expo_fusion
{
public:
	expo_fusion();
	int process(Mat &src);

private:
	void gamma_correc(Mat &src, Mat&dst, float gamma);
	int getWeightMap(Mat &src, Mat &weight);
	void normalize_weight(vector<Mat> &m);
	void build_laplacian_pyramid(Mat &src, vector<Mat> &pyramid_laplacian);
	void reconstruction(vector<Mat> &pyramid_laplacian, Mat &recon);
};